import { Http } from '@/utils/http'

/**
 * 获取分类标签信息
 * @returns 
 */
export function requestTypeLabelList ()  {
    return Http.request({
        url: '/out/typeLabel/getTypeLabel',
        method: 'get'
    })
}

/**
 * 获取根据诗歌id进行分组的分类与标签
 * @returns 
 */
export function requestGroupTypeLabelByPid ()  {
    return Http.request({
        url: '/out/typeLabel/groupTypeLabelByPid',
        method: 'get'
    })
}

/**
 * 根据id删除诗歌标签信息
 * @returns 
 */
export function requestDeletePoetryLabelById (data: any)  {
    return Http.request({
        url: '/typeLabel/deletePoetryLabelByPid',
        method: 'post',
        data: data
    })
}

/**
 * 根据pid添加诗歌标签
 * @returns 
 */
export function requestAddPoetryLabelByPid (data: any)  {
    return Http.request({
        url: '/typeLabel/addPoetryLabelByPid',
        method: 'post',
        data: data
    })
}

/**
 * 根据tid添加标签
 * @returns 
 */
export function requestAddNewLabelByTid (data: any)  {
    return Http.request({
        url: '/typeLabel/getAddNewLabelByTid',
        method: 'post',
        data: data
    })
}

/**
 * 根据lid删除标签
 * @returns 
 */
export function requestDeleteLabelByLid (data: any)  {
    return Http.request({
        url: '/typeLabel/getDeleteLabelByLid',
        method: 'post',
        data: data
    })
}

/**
 * 根据tid删除分类
 * @returns 
 */
export function requestDeleteTypeByTid (data: any)  {
    return Http.request({
        url: '/typeLabel/deleteTypeByTid',
        method: 'post',
        data: data
    })
}

/**
 * 根据tid更改分类名
 * @returns 
 */
export function requestUpdateTypeByTid (data: any)  {
    return Http.request({
        url: '/typeLabel/updateTypeByTid',
        method: 'post',
        data: data
    })
}

/**
 * 添加分类
 * @returns 
 */
export function requestAddType (data: any)  {
    return Http.request({
        url: '/typeLabel/addType',
        method: 'post',
        data: data
    })
}

